<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<html>
<head>
    <title>岗位列表</title>
   <%@include file="/jsp/public/header.jsp" %>
</head>
<body>

<div id="Title_bar">
    <div id="Title_bar_Head">
        <div id="Title_Head"></div>
        <div id="Title"><!--页面标题-->
            <img border="0" width="13" height="13" src="${pageContext.request.contextPath}/style/images/title_arrow.gif"/> 版块管理
        </div>
        <div id="Title_End"></div>
    </div>
</div>

<div id="MainArea">
    <table cellspacing="0" cellpadding="0" class="TableStyle">

        <!-- 表头-->
        <thead>
            <tr align="CENTER" valign="MIDDLE" id="TableTitle">
            	<td width="250px">版块名称</td>
                <td width="300px">版块说明</td>
                <td>相关操作</td>
            </tr>
        </thead>

		<!--显示数据列表-->
        <tbody id="TableData" class="dataContainer" datakey="forumList">
        	<c:forEach items="${forumList}" var="f" varStatus="status">
				<tr class="TableDetail1 template">
					<td>${f.name}&nbsp;</td>
					<td>${f.description}&nbsp;</td>
					<td>
						<a onclick="return window.confirm('确定删除当前记录吗？')" href="delete.do?fid=${f.fid}" namespace="/">删除</a>
						<a href="editUI.do?fid=${f.fid}" namespace="/">修改</a>

						<c:if test="${status.first}">
							上移
							<a href="moveDown.do?fid=${f.fid}&currentPage=${pageBean.currentPage}&pageSize=${pageBean.pageSize}" >下移</a>
						</c:if>
						<c:if test="${status.last}">
							<a href="moveUp.do?fid=${f.fid}&currentPage=${pageBean.currentPage}&pageSize=${pageBean.pageSize}" >上移</a>
							下移
						</c:if>
						<c:if test="${!status.first && !status.last}">
							<a href="moveUp.do?fid=${f.fid}&currentPage=${pageBean.currentPage}&pageSize=${pageBean.pageSize}" >上移</a>
							<a href="moveDown.do?fid=${f.fid}&currentPage=${pageBean.currentPage}&pageSize=${pageBean.pageSize}" >下移</a>
						</c:if>

					</td>
				</tr>
        	</c:forEach>
        </tbody>
    </table>

    <!-- 其他功能超链接 -->
    <div id="TableTail">
        <div id="TableTail_inside">
            <a href="addUI.do" >
            	<img src="${pageContext.request.contextPath}/style/images/createNew.png" />
            </a>
        </div>
    </div>

	<%--分页信息--%>
	<%@include file="/jsp/public/pageView.jsp" %>
</div>

<div class="Description">
	说明：<br />
	1，显示的列表按其sortOrder值升序排列。<br />
	2，可以通过上移与下移功能调整顺序。最上面的不能上移，最下面的不能下移。<br />
</div>

</body>
</html>

